package cn.itliuliu.org.mapper;

import cn.itliuliu.basic.mapper.BaseMapper;
import cn.itliuliu.org.domain.Employee;
import org.springframework.stereotype.Repository;

/**
 * 部门mapper
 * 单表crud：
 * 1.通过id查询
 * 2.查询所有
 * 3.新增
 * 4.修改
 * 5.删除
 * 6.分页查询
 */
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    // 根据用户名查询员工对象
    Employee loadByUserName(String username);
}
